Add support for Linux kernels >=3.0-rc1 in Python related build files by: - replacing occurences of sys.platform == 'linux2' with sys.platform.startswith('linux') - congregating occurences of sys.platform in ('linux[X]', 'linuxY', ...) to sys.platform.startswith('linux') - adding the key 'linux3' to all relevant lookup dicts BUG=85845 TEST=Try building chromium on Linux >=3.0-r1 Review URL: http://codereview.chromium.org/7172016 Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src Cr-Mirrored-Commit: adbae7e226e63018f388bdb197ca5c8f36514a45 
diff --git a/google/platform_utils.py b/google/platform_utils.py index b2caa0f..1489fa2 100644 --- a/google/platform_utils.py +++ b/google/platform_utils.py 
@@ -1,5 +1,5 @@  #!/bin/env python -# Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. +# Copyright (c) 2011 The Chromium Authors. All rights reserved.  # Use of this source code is governed by a BSD-style license that can be  # found in the LICENSE file.   @@ -20,5 +20,5 @@  from platform_utils_win import *  elif sys.platform == 'darwin':  from platform_utils_mac import * -elif sys.platform == 'linux2': +elif sys.platform.startswith('linux'):  from platform_utils_linux import *